<?xml version="1.0" encoding="UTF-8"?>
<jsp:root version="1.2" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:ui="http://www.sun.com/web/ui">
    <jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/>
    <f:view>
        <ui:page binding="#{resultadoHistoriaCliente.page1}" id="page1">
            <ui:html binding="#{resultadoHistoriaCliente.html1}" id="html1">
                <ui:head binding="#{resultadoHistoriaCliente.head1}" id="head1">
                    <ui:link binding="#{resultadoHistoriaCliente.link1}" id="link1" url="/resources/stylesheet.css"/>
                </ui:head>
                <ui:body binding="#{resultadoHistoriaCliente.body1}" id="body1" style="-rave-layout: grid">
                    <ui:form binding="#{resultadoHistoriaCliente.form1}" id="form1">
                        <div style="position: absolute; left: 0px; top: 0px">
                            <jsp:include page="encab1.jspf"/>
                        </div>
                        <h:panelGrid binding="#{resultadoHistoriaCliente.gridPanelGlobal}" id="gridPanelGlobal" style="height: 96px; left: 48px; top: 120px; position: absolute; width: 96px">
                            <h:panelGrid binding="#{resultadoHistoriaCliente.gridPanelTiutloYAlert}" columns="2" id="gridPanelTiutloYAlert">
                                <ui:staticText binding="#{resultadoHistoriaCliente.titulo1}" id="titulo1"
                                    style="color: rgb(108, 154, 154); font-family: 'Times New Roman','Times',serif; font-size: 18px" text="Historia de solicitudes realizadas"/>
                                <ui:alert binding="#{resultadoHistoriaCliente.alert1}" id="alert1"/>
                            </h:panelGrid>
                            <ui:panelGroup binding="#{resultadoHistoriaCliente.groupPanelNIT}" id="groupPanelNIT">
                                <ui:label binding="#{resultadoHistoriaCliente.label1}" id="label1" style="font-size: 18px" text="NIT :"/>
                                <ui:label binding="#{resultadoHistoriaCliente.clienteLabel}" id="clienteLabel" style="font-size: 18px"/>
                            </ui:panelGroup>
                            <ui:label binding="#{resultadoHistoriaCliente.nombreLabel}" id="nombreLabel" style="font-size: 15px"/>
                            <ui:panelGroup binding="#{resultadoHistoriaCliente.groupPanelBotones}" id="groupPanelBotones">
                                <ui:button action="#{resultadoHistoriaCliente.botonRegresar_action}" binding="#{resultadoHistoriaCliente.botonRegresar}"
                                    id="botonRegresar" mini="true" primary="true" style="width: 54px" text="Regresar"/>
                                <ui:button action="#{resultadoHistoriaCliente.botonCerrar_action}" binding="#{resultadoHistoriaCliente.botonCerrar}"
                                    id="botonCerrar" mini="true" primary="true" style="width: 46px" text="Cerrar"/>
                            </ui:panelGroup>
                            <h:panelGrid binding="#{resultadoHistoriaCliente.gridPanelParaTablas}" columnClasses="LstAln" columns="3" id="gridPanelParaTablas">
                                <ui:table binding="#{resultadoHistoriaCliente.tableAprobadas}" extraPanelHtml="beto&#xa;" extraTitleHtml="luis"
                                    id="tableAprobadas" lite="true" paginateButton="true" paginationControls="true" sortPanelToggleButton="true"
                                    title="Solicitudes aprobadas" width="720">
                                    <script><![CDATA[
/* ----- Functions for Table Preferences Panel ----- */
/*
 * Toggle the table preferences panel open or closed
 */
function togglePreferencesPanel() {
  var table = document.getElementById("form1:table1");
  table.toggleTblePreferencesPanel();
}
/* ----- Functions for Filter Panel ----- */
/*
 * Return true if the filter menu has actually changed,
 * so the corresponding event should be allowed to continue.
 */
function filterMenuChanged() {
  var table = document.getElementById("form1:table1");
  return table.filterMenuChanged();
}
/*
 * Toggle the custom filter panel (if any) open or closed.
 */
function toggleFilterPanel() {
  var table = document.getElementById("form1:table1");
  return table.toggleTableFilterPanel();
}
/* ----- Functions for Table Actions ----- */
/*
 * Initialize all rows of the table when the state
 * of selected rows changes.
 */
function initAllRows() {
  var table = document.getElementById("form1:table1");
  table.initAllRows();
}
/*
 * Set the selected state for the given row groups
 * displayed in the table.  This functionality requires
 * the 'selectId' of the tableColumn to be set.
 *
 * @param rowGroupId HTML element id of the tableRowGroup component
 * @param selected Flag indicating whether components should be selected
 */
function selectGroupRows(rowGroupId, selected) {
  var table = document.getElementById("form1:table1");
  table.selectGroupRows(rowGroupId, selected);
}
/*
 * Disable all table actions if no rows have been selected.
 */
function disableActions() {
  // Determine whether any rows are currently selected
  var table = document.getElementById("form1:table1");
  var disabled = (table.getAllSelectedRowsCount() > 0) ? false : true;
  // Set disabled state for top actions
  document.getElementById("form1:table1:tableActionsTop:deleteTop").setDisabled(disabled);
  // Set disabled state for bottom actions
  document.getElementById("form1:table1:tableActionsBottom:deleteBottom").setDisabled(disabled);
}]]></script>
                                    <ui:tableRowGroup binding="#{resultadoHistoriaCliente.tableRowGroup1}" id="tableRowGroup1" rows="10"
                                        sourceData="#{resultadoHistoriaCliente.sct0022DataProviderHistoriaCliAprobadas}" sourceVar="currentRow">
                                        <ui:tableColumn binding="#{resultadoHistoriaCliente.tableColumn1}" headerText="Solicitud" id="tableColumn1" sort="NMROSLCTUD">
                                            <ui:staticText binding="#{resultadoHistoriaCliente.staticText1}" id="staticText1" style="font-size: 10px" text="#{currentRow.value['NMROSLCTUD']}"/>
                                        </ui:tableColumn>
                                        <ui:tableColumn binding="#{resultadoHistoriaCliente.tableColumn2}" headerText="Producto" id="tableColumn2" sort="DSCRPCION">
                                            <ui:staticText binding="#{resultadoHistoriaCliente.staticText2}" id="staticText2" style="font-size: 10px" text="#{currentRow.value['DSCRPCION']}"/>
                                        </ui:tableColumn>
                                        <ui:tableColumn binding="#{resultadoHistoriaCliente.tableColumn3}" headerText="Sublinea" id="tableColumn3" sort="DSCRPCIONSBLNEA">
                                            <ui:staticText binding="#{resultadoHistoriaCliente.staticText3}" id="staticText3" style="font-size: 10px" text="#{currentRow.value['DSCRPCIONSBLNEA']}"/>
                                        </ui:tableColumn>
                                        <ui:tableColumn binding="#{resultadoHistoriaCliente.tableColumn10}" headerText="Tipo solicitud" id="tableColumn10" sort="DSCRPCIONTPOSLCTUD">
                                            <ui:staticText binding="#{resultadoHistoriaCliente.staticText10}" id="staticText10" style="font-size: 10px" text="#{currentRow.value['DSCRPCIONTPOSLCTUD']}"/>
                                        </ui:tableColumn>
                                        <ui:tableColumn binding="#{resultadoHistoriaCliente.tableColumn11}" headerText="Fecha aprobacion" id="tableColumn11" sort="FCHAFINPRCSO">
                                            <ui:staticText binding="#{resultadoHistoriaCliente.staticText11}" id="staticText11" style="font-size: 10px" text="#{currentRow.value['FCHAFINPRCSO']}"/>
                                        </ui:tableColumn>
                                        <ui:tableColumn align="right" binding="#{resultadoHistoriaCliente.tableColumn12}" headerText="Monto aprobado"
                                            id="tableColumn12" sort="MNTOAPRBDO">
                                            <ui:staticText binding="#{resultadoHistoriaCliente.staticText12}" id="staticText12" style="font-size: 10px" text="#{currentRow.value['MNTOAPRBDO']}"/>
                                        </ui:tableColumn>
                                        <ui:tableColumn binding="#{resultadoHistoriaCliente.tableColumn13}" headerText="Causa" id="tableColumn13" sort="DSCRPCIONCSA">
                                            <ui:staticText binding="#{resultadoHistoriaCliente.staticText13}" id="staticText13" style="font-size: 10px" text="#{currentRow.value['DSCRPCIONCSA']}"/>
                                        </ui:tableColumn>
                                    </ui:tableRowGroup>
                                </ui:table>
                                <ui:panelGroup binding="#{resultadoHistoriaCliente.groupPanelSeparador}" id="groupPanelSeparador" style="width: 120px"/>
                                <ui:table binding="#{resultadoHistoriaCliente.tableRechazadas}" clearSortButton="true" extraTitleHtml="jose"
                                    id="tableRechazadas" lite="true" paginateButton="true" paginationControls="true" sortPanelToggleButton="true"
                                    title="Solicitudes rechazadas" width="720">
                                    <script><![CDATA[
/* ----- Functions for Table Preferences Panel ----- */
/*
 * Toggle the table preferences panel open or closed
 */
function togglePreferencesPanel() {
  var table = document.getElementById("form1:table1");
  table.toggleTblePreferencesPanel();
}
/* ----- Functions for Filter Panel ----- */
/*
 * Return true if the filter menu has actually changed,
 * so the corresponding event should be allowed to continue.
 */
function filterMenuChanged() {
  var table = document.getElementById("form1:table1");
  return table.filterMenuChanged();
}
/*
 * Toggle the custom filter panel (if any) open or closed.
 */
function toggleFilterPanel() {
  var table = document.getElementById("form1:table1");
  return table.toggleTableFilterPanel();
}
/* ----- Functions for Table Actions ----- */
/*
 * Initialize all rows of the table when the state
 * of selected rows changes.
 */
function initAllRows() {
  var table = document.getElementById("form1:table1");
  table.initAllRows();
}
/*
 * Set the selected state for the given row groups
 * displayed in the table.  This functionality requires
 * the 'selectId' of the tableColumn to be set.
 *
 * @param rowGroupId HTML element id of the tableRowGroup component
 * @param selected Flag indicating whether components should be selected
 */
function selectGroupRows(rowGroupId, selected) {
  var table = document.getElementById("form1:table1");
  table.selectGroupRows(rowGroupId, selected);
}
/*
 * Disable all table actions if no rows have been selected.
 */
function disableActions() {
  // Determine whether any rows are currently selected
  var table = document.getElementById("form1:table1");
  var disabled = (table.getAllSelectedRowsCount() > 0) ? false : true;
  // Set disabled state for top actions
  document.getElementById("form1:table1:tableActionsTop:deleteTop").setDisabled(disabled);
  // Set disabled state for bottom actions
  document.getElementById("form1:table1:tableActionsBottom:deleteBottom").setDisabled(disabled);
}]]></script>
                                    <ui:tableRowGroup binding="#{resultadoHistoriaCliente.tableRowGroup2}" id="tableRowGroup2" rows="10"
                                        sourceData="#{resultadoHistoriaCliente.sct0022DataProviderHistoriaCliRechazada}" sourceVar="currentRow">
                                        <ui:tableColumn binding="#{resultadoHistoriaCliente.tableColumn4}" headerText="Solicitud" id="tableColumn4" sort="NMROSLCTUD">
                                            <ui:staticText binding="#{resultadoHistoriaCliente.staticText4}" id="staticText4" style="font-size: 10px" text="#{currentRow.value['NMROSLCTUD']}"/>
                                        </ui:tableColumn>
                                        <ui:tableColumn binding="#{resultadoHistoriaCliente.tableColumn7}" headerText="Producto" id="tableColumn7" sort="DSCRPCION">
                                            <ui:staticText binding="#{resultadoHistoriaCliente.staticText7}" id="staticText7" style="font-size: 10px" text="#{currentRow.value['DSCRPCION']}"/>
                                        </ui:tableColumn>
                                        <ui:tableColumn binding="#{resultadoHistoriaCliente.tableColumn6}" headerText="Sublinea" id="tableColumn6" sort="DSCRPCIONSBLNEA">
                                            <ui:staticText binding="#{resultadoHistoriaCliente.staticText6}" id="staticText6" style="font-size: 10px" text="#{currentRow.value['DSCRPCIONSBLNEA']}"/>
                                        </ui:tableColumn>
                                        <ui:tableColumn binding="#{resultadoHistoriaCliente.tableColumn5}" headerText="Tipo solicitud" id="tableColumn5" sort="DSCRPCIONTPOSLCTUD">
                                            <ui:staticText binding="#{resultadoHistoriaCliente.staticText5}" id="staticText5" style="font-size: 10px" text="#{currentRow.value['DSCRPCIONTPOSLCTUD']}"/>
                                        </ui:tableColumn>
                                        <ui:tableColumn binding="#{resultadoHistoriaCliente.tableColumn8}" headerText="Fecha rechazo" id="tableColumn8" sort="FCHAFINPRCSO">
                                            <ui:staticText binding="#{resultadoHistoriaCliente.staticText8}" id="staticText8" style="font-size: 10px" text="#{currentRow.value['FCHAFINPRCSO']}"/>
                                        </ui:tableColumn>
                                        <ui:tableColumn binding="#{resultadoHistoriaCliente.tableColumn9}" headerText="Causa" id="tableColumn9" sort="DSCRPCIONCSA">
                                            <ui:staticText binding="#{resultadoHistoriaCliente.staticText9}" id="staticText9" style="font-size: 10px" text="#{currentRow.value['DSCRPCIONCSA']}"/>
                                        </ui:tableColumn>
                                    </ui:tableRowGroup>
                                </ui:table>
                            </h:panelGrid>
                        </h:panelGrid>
                    </ui:form>
                </ui:body>
            </ui:html>
        </ui:page>
    </f:view>
</jsp:root>
